#pragma once

#include "Common.h"

class Buffer
{
public:
	CONSTRUCTOR Buffer();
	DESTRUCTOR ~Buffer();

	void Clear();
	bool Resize(u32 size);

	c8* GetData() const;
	u32 GetSize() const;

	Buffer& operator =(const Buffer& buffer);
	Buffer& operator =(const String& string);

	c8& operator [](u32 index) const;

protected:
	c8* mData;
	u32 mSize;
};